package com.sdwz.borrow.service;

import com.sdwz.borrow.entity.PenaltyInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 罚款信息表 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-03-30
 */
public interface PenaltyInfoService extends IService<PenaltyInfo> {

    int calculateDay(Date startDay, Date endDay);

    BigDecimal calculateAmount(int day, BigDecimal price);

}
